package com.example.demo.controller;


import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 狂神说
 * @since 2021-01-11
 */
@RestController
@RequestMapping("/demo/user")
public class UserController {
    @Autowired
    UserService userService;
    @GetMapping("/test1")
    public void selectClassById() {
        System.out.println("********************");
        userService.testuser();
    }
}

